home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / qwhite.zip / COM3N4.TEC < prev    next >
Text File  |  1992-03-09  |  7KB  |  116 lines

  1. ID:CM COM Ports and DESQview
  2. DESQview Technical Note #145
  3. by Stan Young
  4. last revision:  10 February 1992
  5.  
  6. Q:  Why doesn't DESQview support more than COM1 and COM2?
  7.  
  8. Q:  How can I run more COM ports on my machine in DESQview?
  9.  
  10.      In DESQview's Change a Program menus, DESQview allows you to limit the 
  11. COM ports that the BIOS reports to be available in the window.  The choices 
  12. are 1, 2, Y and N.  This does not mean, however, that DESQview does not 
  13. support the use of COM3 and COM4:  It does.  
  14.      DESQview allows you to specify whether the BIOS will report that only 
  15. COM1 or COM2 exists so that it can attempt to make the system appear to have 
  16. only the port (1 or 2) that you have specified.  This is done so that ill-
  17. behaved programs that clear both ports on startup, making the assumption that 
  18. they are the only program running on the machine, will not interfere with a 
  19. program that is already using the other port.  These programs do not typically 
  20. interfere with COM3 or COM4, so if you are using one of these ports, you can 
  21. set "Uses serial ports" to either N or Y.  It makes no difference.
  22.      All DESQview does is clear the bytes in the BIOS Data area where the BIOS 
  23. stores I/O addresses of the serial ports.  These bytes are 40:0 and 40:1 for 
  24. COM1, 40:2 and 40:3 for COM2, 40:4 and 40:5 for COM3, and 40:6 and 40:7 for 
  25. COM4.  You may view the contents of this portion of memory in Manifest's First 
  26. Meg/BIOS Data screen.  When "Uses serial ports" is set to N, 40:0-40:3 appear 
  27. to contain 0 in this window; when "Uses serial ports" is set to 1, 40:2 and 
  28. 40:3 (where the I/O port address of COM2 resides) appear to contain 0 in this 
  29. window; when "Uses serial ports" is set to 2, 40:0 and 40:1 (where the I/O 
  30. port address of COM1 resides) appear to contain 0 in this window.  DESQview 
  31. never changes the apparent contents of 40:4-40:7 (where the I/O addresses of 
  32. COM3 and COM4 reside.)  Programs that do not rely on the BIOS reporting the 
  33. addresses of the serial ports (and many do not) will not be "fooled" by this 
  34. strategem of DESQview, and will do what they will with the serial ports.  If a 
  35. program in one window interferes with the use of another serial port on a 
  36. separate IRQ (see below) in another window, and trying to segregate the serial 
  37. ports to their separate windows with the "Uses serial ports" feature of 
  38. DESQview does not solve the problem, then you should inform the makers of the 
  39. culprit program. 
  40.  
  41. USING MORE THAN ONE COM PORT SIMULTANEOUSLY IN DESQVIEW
  42.  
  43.      However, there is a key issue that is important to understand when trying 
  44. to use ports beyond 2 in a multitasking system.  There are two parts to serial 
  45. communication:  
  46.  
  47.      1.  The software side, which is the BIOS COM port identification. 
  48.      2.  The hardware side, which is the hardware interrupt (IRQ) that is 
  49.          being used.
  50.  
  51.      A good analogy for understanding the importance of this is to think of 
  52. serial port communications as a telephone system.  The COM port represents the 
  53. actual telephone unit (the extension, if you will). The hardware interrupt, or 
  54. IRQ, represents the line out that connects to the phone company.  COM1 and 
  55. COM2 have their own dedicated lines (IRQ4 and IRQ3, respectively).  This is 
  56. the standard configuration in the PC environment, though not absolutely 
  57. required. 
  58.      When you add a COM3 or COM4, they must be assigned an IRQ.  You have two 
  59. options:  You can assign them their own separate IRQ, or you can assign them 
  60. to one of the IRQs that are already in use (3 or 4).  However, if you assign a 
  61. new COM port to an IRQ that is already assigned to another port, it is like 
  62. adding another telephone extension to an existing line.  You will be able to 
  63. call out from either extension, but you will not be able to call out from both 
  64. extensions at the same time -- for that, you need a dedicated line.
  65.      Most of the hardware devices (modems, mice, plotters, scanners or 
  66. whatever), that allow you to define them as a port above 2 unfortunately do so 
  67. by reusing IRQ3 or IRQ4.  This works well when using the ports from free-
  68. standing programs, one at a time, but in multitasking systems these setups are 
  69. generally  unsatisfactory, as users of multitasking systems want to be able to 
  70. use the ports simultaneously.
  71.      If the hardware that supplies your additional COM ports allows you to 
  72. configure the port to a IRQ, other than IRQ3 or IRQ4, that is free on your 
  73. machine -- say IRQ2 or IRQ5 -- then that situation would be like a phone with 
  74. another line out, and you would be able to use it simultaneously with COM1 and 
  75. COM2.  Otherwise, you are limited to using these ports serially, not 
  76. simultaneously.
  77.  
  78. FOSSIL DRIVERS
  79.  
  80.      There are some systems that are now accessing multiple ports through the 
  81. use of FOSSIL drivers and special multi-port hardware (sometimes with its own 
  82. on-board processor). A full discussion of FOSSIL drivers is beyond the scope 
  83. of this technical note, but, briefly, this is how they work: 
  84.  
  85.      A driver is loaded in the CONFIG.SYS file which sets up 
  86.      communications with the hardware supplying the ports.  The hardware 
  87.      may contain 4, 8, or even more ports.  The hardware usually uses 
  88.      ONLY one standard hardware IRQ, usually IRQ3 (used by COM2 in 
  89.      standard configurations).  The driver is then addressed by the 
  90.      communications software (which must know how to address the FOSSIL 
  91.      driver) as though it were a series of COM ports (again, 4, 8, or 
  92.      more).  When communications to one of the ports is received, the 
  93.      driver multiplexes through the single IRQ to communicate with the 
  94.      board which, since it knows how to talk to the driver, can 
  95.      determine to which physical port on the board the data is to be 
  96.      directed.
  97.  
  98.      We have a number of users who use systems with FOSSIL drivers to run 
  99. multiple ports on electronic bulletin board systems and for CAM process 
  100. control.  To implement a multi-port system using FOSSIL drivers, however, you 
  101. need three things:  The hardware, the FOSSIL driver, and communications 
  102. programs that are specifically written to use the FOSSIL driver.
  103.      For more information about FOSSIL drivers, obtain a file called 
  104. FOSSIL.ZIP, available on many bulletin board systems around the country.
  105.  
  106.   ************************************************************************
  107.   *This technical note may be copied and distributed freely as long as it*
  108.   *is distributed in its entirety and it is not distributed for profit.  *
  109.   *         Copyright (C) 1990-2 by Quarterdeck Office Systems           *
  110.   ************************ E N D   O F   F I L E *************************
  111.  
  112.  
  113.  
  114.  
  115.  
  116.